/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package kernel;

import java.util.Vector;

/**
 *
 * @author alvaro
 */
public class Module {
    private Vector<Plugin> children = new Vector<Plugin>();
    private String name;
    
    public Module(String name){
        this.name = name;
    }

    public Plugin getChildAt(int n){
        return children.get(n);
    }

    public String toString(){
        return name;
    }

    public void setName(String s){
        name = s;
    }

    public String getName(){
        return name;
    }

    public Vector<Plugin> getChildren(){
        return children;
    }

    public void addChild(Plugin p){
        children.add(p);
    }

    public void removeChild(Plugin p){
        children.removeElement(p);
    }

    public void removeChildAt(int n){
        children.removeElementAt(n);
    }
}
